package com.xb.loan.admin;


public class Constants {
   // public static final String CURRENT_USER = "user";
    
    //角色可操作的渠道编号 存放session中的key值，存放List<PartnerInfo>对象
    public static final String SESSION_ROLE_PARTNERINFO_LIST="role_partnerInfoList";
    //角色可操作的渠道编号字符串 存放session中的key值，渠道编号以逗号,分割
    public static final String SESSION_ROLE_PARTNER_STR="role_partner_str";
    //当前用户授予的权限 存放session中的key值，存放SimpleAuthorizationInfo对象
    public static final String SESSION_AUTHORIZATION_INFO="authorization_Info";
    // 权限List集合
    public static final String SESSION_AUTHORIZATION_LIST = "sbList";
    
    //当前用户的登录用户名
    public static final String SESSION_LOGIN_NAME="login_name";
    //当前用户登录用户密码
    public static final String SESSION_LOGIN_PWD="session_login_password";
    //当前用户的登录编码Operator
    public static final String SESSION_OPERATOR_ID = "operator_id";
    //如果登录用户是渠道用户，session里存当前登录用户的渠道编码
    public static final String SESSION_PARTNER_ID = "session_partner_id";
    //当前登录用房类型
    public static final String SESSION_LOGIN_USER_TYPE = "session_login_user_type";
    
    
    //页面显示记录条数
    public static final int DEFAULT_PAGING_NUM_PERPAGE = 20;
    
    public static final String PARTNER_STR_SPLIT= ",";
    
    public static final String PARTNER_STR_REPLACE= "'";
    
    public static final String SESSION_AUTHCODE="session_auth_Code";
    
    //客服系统参数
    public static final String SESSION_KEY_TYPE = "session_cut_key_type";
    
    public static final String SESSION_KEY_VALUE = "session_cut_key_value";
    
    //加密码Key
    public static final String CONSTANT_PWD_ENCRYPT ="LPr5xs6NlKA4h+gjpjPtLA==";
    
    
    
    //操作员状态
    public static enum OperatorStatus {
        ENABLED(1, "正常"), DISABLED(0, "不可用");
        private int code;  
        private String msg;
        private OperatorStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        } 
        public int getCode() {return code;}
        public void setCode(int code) {this.code = code;}
        public String getMsg(){ return msg;}
        public void setMsg(String msg){this.msg = msg;}
    }
    
    //合作商销售彩种审核状态
    public static enum ApproveEnable { 
        WAITAPPROVER(0, "待审核"),
        APPROVESUCCESS(1, "审核通过"),
        APPROVEFAIL(2, "审核不通过");
        private int code;
        private String msg;
        private ApproveEnable(int code, String msg) {
          this.code = code;this.msg = msg;
        }
        public int getCode() {return code;}
        public void setCode(int code) { this.code = code;}
        public String getMsg(){ return msg;}
        public void setMsg(String msg){this.msg = msg;}
   } 
    // 操作日志操作类型 ///
    public static final int OPERATE_TYPE_ADD = 1;
    public static final int OPERATE_TYPE_MODIFY = 2;
    public static final int OPERATE_TYPE_DELETE = 3;
    public static final int OPERATE_TYPE_APPROVE = 4;
    public static final int OPERATE_TYPE_LOGIN = 5;
    public static final int OPERATE_TYPE_LOGOUT = 6;
    
    //新建渠道加入Session中的渠道级别，只添加一级渠道
    public static final int SESSION_PARTNER_LEVEL = 1;
    
    
}
